<?php
// +----------------------------------------------------------------------
// | 07FLYCRM [基于ThinkPHP5.0开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2021 http://www.07fly.xyz
// +----------------------------------------------------------------------
// | Professional because of focus  Persevering because of happiness
// +----------------------------------------------------------------------
// | Author: 开发人生 <goodkfrs@qq.com>
// +----------------------------------------------------------------------
namespace app\workflow\model;

/**
 * 流程节点=》模型
 */
class WorkflowNode extends WorkflowBase
{
    public function destribute_type($key = '')
    {
        $data = array(
            "1" => array(
                'name' => '负责人主管',
                'link' => '',
                'html' => '<span class="label">负责人主管<span>'
            ),
            "2" => array(
                'name' => '指定用户(任意一人)',
                'link' => 'users',
                'html' => '<span class="label">指定用户(任意一人)<span>'
            ),
            "3" => array(
                'name' => '指定用户(多人会签)',
                'link' => 'users',
                'html' => '<span class="label">指定用户(多人会签)<span>'
            ),
            "4" => array(
                'name' => '上一级审批人主管',
                'link' => '',
                'html' => '<span class="label">上一级审批人主管<span>'
            ),
        );
        return (array_key_exists($key, $data)) ? $data[$key] : $data;
    }
}
